package com.scalefuture.gmemcached;

import java.io.Serializable;

public class STATKey implements Serializable {
    private String key;

    public STATKey(String key) {
        this.key = key;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        STATKey statKey = (STATKey) o;

        if (key != null ? !key.equals(statKey.key) : statKey.key != null) return false;

        return true;
    }

    public int hashCode() {
        return (key != null ? key.hashCode() : 0);
    }
}
